package com.lo.ochat.controller;


import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper;
import com.lo.ochat.model.entity.User;
import com.lo.ochat.service.IUserService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xx
 * @since 2020-12-11
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    private IUserService userService;
    


    @ApiOperation(value = "查询所有用户")
    @PostMapping(value = "/queryAllUser", produces = "application/json")
    public void queryAllUser(@RequestBody User dto) {
        QueryChainWrapper<User> query = userService.query();

    }
}

